xref: /netbsd-src/crypto/external/bsd/openssl/dist/include/internal/nelem.h (revision b0d1725196a7921d003d2c66a14f186abda4176b)
113d40330Schristos /*
2*b0d17251Schristos  * Copyright 2017-2021 The OpenSSL Project Authors. All Rights Reserved.
313d40330Schristos  *
4*b0d17251Schristos  * Licensed under the Apache License 2.0 (the "License").  You may not use
513d40330Schristos  * this file except in compliance with the License.  You can obtain a copy
613d40330Schristos  * in the file LICENSE in the source distribution or at
713d40330Schristos  * https://www.openssl.org/source/license.html
813d40330Schristos  */
913d40330Schristos 
107d004720Schristos #ifndef OSSL_INTERNAL_NELEM_H
117d004720Schristos # define OSSL_INTERNAL_NELEM_H
12*b0d17251Schristos # pragma once
1313d40330Schristos 
1413d40330Schristos # define OSSL_NELEM(x)    (sizeof(x)/sizeof((x)[0]))
1513d40330Schristos #endif
16