aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-09-13py: Fix build error when float disabled; add test for divmod.Damien George
2014-09-13py: Implement divmod, % and proper // for floating point.Damien George
Tested and working on unix and pyboard.
2014-09-13Merge branch 'iabdalkader-memcpy'Damien George
2014-09-13stmhal: Slightly improved memcpy; memset uses word store when aligned.Damien George
2014-09-12Merge branch 'memcpy' of github.com:iabdalkader/micropython into ↵Damien George
iabdalkader-memcpy
2014-09-12py: Load strings as objects when compiling viper.Damien George
Eventually, viper wants to be able to use raw pointers to strings and arrays for efficient access. But for now, let's just load strings as a Python object so they can be used as normal. This will anyway be compatible with eventual intended viper behaviour. Addresses issue #857.
2014-09-11Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-09-11py and libm: Add asinf,acosf; print higher precision for float.Damien George
Also use less stack space when printing single precision float. Addition of asinf and acosf addresses issue #851.
2014-09-11Merge pull request #852 from techno/staccel_LIS3DSHDamien George
Add LIS3DSH accelometer support to staccel.py
2014-09-11Optimize memcpy moreiabdalkader
2014-09-11Add LIS3DSH accelometer support to staccel.pyHirotaka Kawata
2014-09-11Memcpy: copy wordsiabdalkader
2014-09-10py: Enable struct/binary-helper to parse q and Q sized ints.Damien George
Addresses issue #848.
2014-09-08py: Put define of x86 argument registers in asmx86.h.Damien George
2014-09-08py: Convert [u]int to mp_[u]int_t in emit.h and associated .c files.Damien George
Towards resolving issue #50.
2014-09-08py: Print imported module's location (__file__) if available.Damien George
2014-09-07stmhal: uart ioctl uses EINVAL, and checks TXE bit for write-ability.Damien George
2014-09-07Remove skeletal modselect from extmod and just put it in stmhal.Damien George
2014-09-07stmhal: Fix modselect so non-hashable objects can be polled.Damien George
2014-09-07py: Rename mp_builtin_id to mp_obj_id and make it public.Damien George
2014-09-07stmhal: Add polling ability to UART object.Damien George
2014-09-07stmhal: Implement generic select.select and select.poll.Damien George
2014-09-07py: Add ioctl method to stream protocol; add initial modselect.Damien George
2014-09-07py: Clean up x86-64 native assembler; allow use of extended regs.Damien George
Native x86-64 now has 3 locals in registers.
2014-09-06py: Adjust regs for x86 so that 1 more local can live in a reg.Damien George
2014-09-06unix: Fix modffi to be able to return double on x86 machines.Damien George
2014-09-06py: Allow x86 native functions to take arguments.Damien George
Fix some bugs with x86 stack and saving registers correctly.
2014-09-06py: Add support for emitting native x86 machine code.Damien George
2014-09-06Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-09-06tests: Enable misc tests on pyboard; output 4 sig figs in rge_sm.Damien George
2014-09-06py: Native emitter now supports delete name & global, and end finally.Damien George
2014-09-06modstruct: Implement 'O', 'P', 's' types for packed structs.Paul Sokolovsky
This is required to deal with, well, packed C structs containing pointers.
2014-09-06py: Correctly set sys.maxsize value for 64-bit.Paul Sokolovsky
Type representing signed size doesn't have to be int, so use special value which defaults to SSIZE_MAX, but as it's not defined by C standard (but rather by POSIX), allow ports to set it.
2014-09-06unix: Don't use -Wno-error=cpp or #warning; fix strict alias warning.Damien George
For the sake of older versions of gcc (and other compilers), don't use the #warning CPP directive, nor the -Wno-error=cpp option. Also, fix a strict alias warning in modffi.c for older compilers, and add a test for ffi module. Addresses issue #847.
2014-09-06py: Fix definition of sys.maxsize with mpz changes.Damien George
2014-09-06py: Make mpz able to use 16 bits per digit; and 32 on 64-bit arch.Damien George
Previously, mpz was restricted to using at most 15 bits in each digit, where a digit was a uint16_t. With this patch, mpz can use all 16 bits in the uint16_t (improvement to mpn_div was required). This gives small inprovements in speed and RAM usage. It also yields savings in ROM code size because all of the digit masking operations become no-ops. Also, mpz can now use a uint32_t as the digit type, and hence use 32 bits per digit. This will give decent improvements in mpz speed on 64-bit machines. Test for big integer division added.
2014-09-05py: Convert (u)int to mp_(u)int_t in mpz, and remove unused function.Damien George
2014-09-05py: Use % str formatting instead of {} in makeqstrdata.py.Damien George
Script is equivalent, but now also runs under ancient Python 2.6. Goes part way to addressing issue #847.
2014-09-04py: Use variable length encoded uints in more places in bytecode.Damien George
Code-info size, block name, source name, n_state and n_exc_stack now use variable length encoded uints. This saves 7-9 bytes per bytecode function for most functions.
2014-09-03Code style/whitespace cleanup; remove obsolete headers.Damien George
And move the MAP_ANON redefinition from py/asmx64.c to unix/alloc.c.
2014-09-03unix: Auto-detect MICROPY_EMIT_X64 and MICROPY_GCREGS_SETJMP.Damien George
If not set, MICROPY_EMIT_X64 is set only if on x86-64 machine. If not set, MICROPY_GCREGS_SETJMP is set when on MIPS.
2014-09-03Merge pull request #845 from Vogtinator/masterDamien George
Add allocation macros (per platform) and ARM cache flush
2014-09-03Add cache flush in py/asmarm.c and add new MP_PLAT_ALLOC_EXEC and ↵Fabian Vogt
MP_PLAT_FREE_EXEC macros Fixes issue #840
2014-09-03Merge pull request #844 from chrisdearman/do_strDamien George
Declare do_str() function before the implementation
2014-09-02Merge branch 'stinos-msvc-extmod'Damien George
2014-09-02extmod: Fix type-punned-ptr error.Damien George
2014-09-02Merge branch 'msvc-extmod' of github.com:stinos/micropython into ↵Damien George
stinos-msvc-extmod
2014-09-02msvc: Exclude modtermios, include extmod and fix compilation errorstijn
2014-09-01Declare do_str() function before the implementationChris Dearman
This ensures that GCC does not discard the do_str implementation in some cases eg when compiling tests with debug enabled: make RUN_TESTS=1 DEBUG=1
2014-09-01stmhal, modwiznet5k: Add very minimal documentation.Damien George