Menu

#10 Use hardware ops for bitwise functions

0.2.5
accepted
2019-05-21
2019-05-12
No

Subj,
for x86 and for ARM (clz).
There are a plenty ways to do so:

  • gcc builtin function
  • inline asm

My purpose is to use this lib on MCU without any modification (as I'm doing now). Other purpose is to build this lib on non-posix system i.e. windows with vc.

Well, there are a few things to do:

  • add autotools tests for gcc builtins
  • add autotools tests for arch and/or add option to select arch
  • use/implement arch specific functions within a code

CAS is a good example of this (but not complete since it fully depends on GCC).

Discussion

  • Alexander Vdolainen

    • labels: optimization, bitwise --> optimization, bitwise, autotools
    • summary: Provide hw-accel. functions for bitwise ops --> Use hardware ops for bitwise functions
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,2 +1,14 @@
     Subj,
     for x86 and for ARM (clz).
    +There are a plenty ways to do so:
    +*  gcc builtin function
    +*  inline asm
    + 
    + My purpose is to use this lib on MCU without any modification (as I'm doing now). Other purpose is to build this lib on non-posix system i.e. windows with vc.
    + 
    + Well, there are a few things to do:
    +*  add autotools tests for gcc builtins
    +*  add autotools tests for arch and/or add option to select arch
    +*  use/implement arch specific functions within a code
    + 
    + CAS is a good example of this (but not complete since it fully depends on GCC).
    
     
  • Alexander Vdolainen

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,12 +1,14 @@
     Subj,
     for x86 and for ARM (clz).
     There are a plenty ways to do so:
    +
     *  gcc builtin function
     *  inline asm
    
      My purpose is to use this lib on MCU without any modification (as I'm doing now). Other purpose is to build this lib on non-posix system i.e. windows with vc.
    
      Well, there are a few things to do:
    +
     *  add autotools tests for gcc builtins
     *  add autotools tests for arch and/or add option to select arch
     *  use/implement arch specific functions within a code
    
     
  • Alexander Vdolainen

    • status: open --> accepted
    • assigned_to: Alexander Vdolainen
     

Log in to post a comment.