Commit graph

26 commits

Author SHA1 Message Date
Fardale
9d083df3a6 feat(CCInt): add of_float 2020-01-18 16:16:52 +01:00
Fardale
2d1ba8d925 feat(CCInt): add of_string_exn 2020-01-18 15:57:55 +01:00
Fabian
2bf052ab7a Avoid catch-all handlers 2020-01-12 20:30:18 -06:00
Simon Cruanes
8c33147d06 add some tests 2020-01-12 20:28:22 -06:00
Simon Cruanes
96ed8a37ab feat: introduce shim modules for 4.08 compat
- also make `unlabel` an explicit operation
- use `Stdlib` instead of `Pervasives`
- remove some warnings in Format
2019-06-14 18:26:14 -05:00
Simon Cruanes
3712db3a5b chore: use iter, not sequence, in tests 2019-04-13 03:20:56 -05:00
Simon Cruanes
3236d3c8b9 fix: missing type annotation for specializing int.compare 2019-02-04 13:33:52 -06:00
Simon Cruanes
b60fe99365 perf: annotate types in monomorphic/float/int to help specialize builtins
close #245
2019-01-30 21:33:39 -06:00
Metin Akat
7d25684941 Support using ** for exponentiation 2018-09-02 10:56:11 -05:00
Simon Cruanes
98bb766de6 fix ccint 2018-02-27 21:37:28 -06:00
Simon Cruanes
da6d4a72fa enrich CCInt.Infix to get a uniform interface with CCInt{32,64} 2018-02-27 21:12:04 -06:00
Jacques-Pascal Deplaix
9622f6f6ff Avoid uses of the polymorphic operators 2018-01-14 23:32:13 +00:00
Jacques-Pascal Deplaix
6d2063ded4 Internally shadow polymorphic operators and functions from Pervasives 2018-01-14 23:32:13 +00:00
Fabian
0408466bd9 More tests for floor_div and rem 2017-04-28 15:22:32 -05:00
Fabian
883eb611f0 Implement CCInt.floor_div and CCInt.rem 2017-04-28 14:40:15 -05:00
Simon Cruanes
e0287b9efe add CCInt.range{,',by} for iterating on integer ranges 2017-03-29 17:40:54 +02:00
Simon Cruanes
03fd42e67d reindentation 2017-01-25 00:08:12 +01:00
Simon Cruanes
13b283a91d remove buffer printers, rename pretty-printers to pp 2016-11-03 18:24:11 +01:00
Simon Cruanes
b249adf86f add CCInt.{print_binary,to_string_binary} + tests (thanks @gsg) 2016-09-18 10:37:05 +02:00
Simon Cruanes
b17f55b1d1 add monomorphic signatures in CCInt and CCFloat 2016-04-22 22:07:06 +02:00
Simon Cruanes
34445bead0 replace headers in the rest of containers core 2016-02-20 23:24:24 +01:00
Fourchaux
44387de784 Correction typos (fichiers src) 2015-11-08 22:27:59 +01:00
Simon Cruanes
4946f367ea add CCInt.{of_string,to_string} 2015-08-31 21:17:30 +02:00
Simon Cruanes
7605bacdc3 add a few tests 2015-04-30 15:56:37 +02:00
Bernardo da Costa
84e77fddcf pow pow pow
Voilà un petit commit en annexe.

--
Bernardo

>From f11b65e1d282467d2dca8612a6fafa718c66e022 Mon Sep 17 00:00:00 2001
From: Bernardo Freitas Paulo da Costa <bernardo.da-costa@m4x.org>
Date: Thu, 30 Apr 2015 10:24:21 -0300
Subject: [PATCH] Add CCInt.pow

Binary exponentiation for positive numbers.
2015-04-30 15:56:09 +02:00
Simon Cruanes
61465fa19a remove cgi/; move sub-libraries to their own subdir each; mv everything into src/ 2014-12-16 23:41:59 +01:00
Renamed from core/CCInt.ml (Browse further)