Giter Site home page Giter Site logo

Comments (5)

zakk0610 avatar zakk0610 commented on July 18, 2024

Agree, spec already reserves SEW=1024 supported.

Unfortunately uintXLEN_t is still in the PR, riscv-non-isa/riscv-c-api-doc#14
Which type are you prefer to use? unsigned long?

from rvv-intrinsic-doc.

nick-knight avatar nick-knight commented on July 18, 2024

I propose we just define uint_xlen_t in the usual way in the riscv_vector.h, and delete it when the C API PR is approved and added to compilers. Hopefully this can be done without breaking user code because riscv_vector.h is bundled with the toolchain.

I'm pretty sure the P-extension does the same thing in their intrinsics header file. I don't know about other extensions' intrinsics.

I'm not an expert on this kind of thing, happy to hear alternatives.

from rvv-intrinsic-doc.

kito-cheng avatar kito-cheng commented on July 18, 2024

I propose we just define uint_xlen_t in the usual way in the riscv_vector.h, and delete it when the C API PR is approved and added to compilers. Hopefully this can be done without breaking user code because riscv_vector.h is bundled with the toolchain.

That SGTM, I think intrinsic for B extension should need that too.

from rvv-intrinsic-doc.

zakk0610 avatar zakk0610 commented on July 18, 2024

Before we have uint_xlen_t, could we use size_t type for shift amount ?

from rvv-intrinsic-doc.

nick-knight avatar nick-knight commented on July 18, 2024

This was addressed by #72 , although I think this and related aspects of the API should be revisited once we have XLEN-width integer types to replace size_t, long, etc.

from rvv-intrinsic-doc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.