Commit graph

44 commits

Author SHA1 Message Date
Fardale
1a38c0bba2 feat: New format and parser for cpp 2022-09-30 20:53:40 +02:00
Simon Cruanes
00d344e09e
fix(Int64.hash): wrong shift
found by @copy
2022-08-29 09:49:51 -04:00
Simon Cruanes
10865eaced reformat 2022-07-04 13:36:06 -04:00
Simon Cruanes
b695918e99
move all core tests to new testlib 2022-07-02 00:29:25 -04:00
Simon Cruanes
59407b0f5e
wip: remove some shims 2022-02-21 17:12:32 -05:00
Simon Cruanes
cf0d044407 refactor CCHash to use FNV in many combinators 2021-04-03 17:42:17 -04:00
Simon Cruanes
7717cc13db fix(ccint): make sure hash is always positive 2021-04-03 17:42:17 -04:00
Simon Cruanes
cc7799f379 perf(ccint): single implementation of popcount using int64 2021-04-03 17:42:17 -04:00
Simon Cruanes
ec796d5fc5 perf(int): use FNV for integer hashing 2021-04-03 17:42:17 -04:00
Fabian
dcf1b4aa6c Fix integer overflow warning on jsoo (#346)
- Remove popcount from shims
- Express large integer literals using bitshifts
2021-02-21 15:53:54 -05:00
Simon Cruanes
50ec164b67 fix: remove code that is in the shims 2020-08-06 11:19:52 -04:00
Simon Cruanes
e0f2c78edd fix(int): use shims to provide separate 32/64 bits versions of popcount
close #327
2020-08-05 14:05:48 -04:00
Fardale
102ad62075 fix: correct module name in Invalid_argument for CCInt.range_by 2020-05-23 11:37:56 +02:00
Fardale
b06155f05b implement CCInt.sign using CCInt.compare and add more doc 2020-05-23 11:37:56 +02:00
Fardale
eaa421c62d chore(int): include module Int for ocaml >= 4.08 2020-05-23 11:37:56 +02:00
Fardale
8f5c7c8fe9 feat(int): add elements of Int module from the std 2020-05-23 11:37:56 +02:00
Simon Cruanes
d7a7cbb170 feat: add Int.popcount operator 2020-05-18 14:04:42 -04:00
Simon Cruanes
d923795e1a remove slice APIs in string and array 2020-04-24 20:23:26 -04:00
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)