Skip to content

Refactor GAT0 and friends #83

Open

Description

@codereport

In jsrc/verbs/monadic/tally.cpp:

[[nodiscard]] auto
make_scalar_integer(J jt, int64_t k) -> array {
    if (xor_replicate_sign(k) <= NUMMAX) {
        return !zero_or_one(k) ? refactorme_num(k) : zeroionei(k);
    }
    array z;
    GAT0(z, INT, 1, 0);          // TODO: GA -> make_array refactoring
    pointer_to_ravel(z)[0] = k;  // TODO: set_value(..)
    return z;
}

Activity

  1. added
    c to c++
    on Jan 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    c to c++

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions