summaryrefslogtreecommitdiff
path: root/core/lib/libtomcrypt/include/tomcrypt_arm_neon.h
blob: 639f072b7e5d6eafdc35760979ff9499521e3c73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: BSD-2-Clause */
/*
 * Copyright (c) 2015, Linaro Limited
 * All rights reserved.
 */
#ifndef TOMCRYPT_ARM_NEON_H
#define TOMCRYPT_ARM_NEON_H

#include <tomcrypt_macros.h>

struct tomcrypt_arm_neon_state {
	ulong32 state;
};

/* Temporarily enables neon instructions */
void tomcrypt_arm_neon_enable(struct tomcrypt_arm_neon_state *state);
/* Disables neon instructions after a call to tomcrypt_arm_neon_enable() */
void tomcrypt_arm_neon_disable(struct tomcrypt_arm_neon_state *state);

#endif /*TOMCRYPT_ARM_NEON_H*/